<?php

class Exam_Form_Admin_Faqcategory_DeleteFaqcategories extends Engine_Form {

    public function init() {
        $this->setTitle('EXAM_TITLE_FORM_FAQCATEGORY')
             ->setDescription('EXAM_DESCRIPTION_FORM_FAQCATEGORY');


        $this->addElement('Button', 'submit', array(
            'type' => 'submit',
            'label' => 'Delete',
            'decorators' => array('ViewHelper')
        ));

        $this->addElement('Cancel', 'cancel', array(
            'label' => 'Cancel',
            'link' => true,
            'prependText' => Zend_Registry::get('Zend_Translate')->_(' or '),
            'href' => '',
            'onclick' => 'parent.Smoothbox.close();',
            'decorators' => array(
                'ViewHelper'
            )
        ));
        $this->addDisplayGroup(array('submit', 'cancel'), 'buttons');
        $button_group = $this->getDisplayGroup('buttons');

        // Set default action
        $this->setAction(Zend_Controller_Front::getInstance()->getRouter()->assemble(array()));
    }

}
?>
